package com.day1011.task;

import javax.swing.*;
import java.awt.*;

public class MyFrames extends JFrame {
    MyPanels myPanels;

    {
        try {
            myPanels = new MyPanels();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public MyFrames(){
        super.setSize(72*11,72*11);   //  窗体宽度
        super.setTitle("打怪");  //  窗体标题
        super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// 窗口关闭
        super.add(myPanels);
        super.setVisible(true);//  设置是否可见
    }
}
